<?php session_start(); ?>
<?php include("./config.php"); ?>
<?php if(true) : ?>
<html>
	<head>
		<title><?php print($conf['title']); ?></title>
	</head>
	<body>
<?php if(!isset($_SESSION['hash'])) : ?>
		<form name="auth" method="POST" action="./auth.php">
			<input type="text" name="login" id="login" value="Login"><br>
			<input type="password" name="pass" id="pass" value="Password"><br>
			<input type="submit" value="Login">
			<input type="button" value="Register" onClick=location.href='./reg.php'>
		</form>
<?php else : ?>
		<a href="./logout.php">Logout</a><br>
<?php endif; ?>
	</body>
</html>
<?php endif; ?>